@import '../../assets/scss/var.scss';

.pagination {
  padding: 10px 0;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;

  .prev,
  .ellipsis,
  .next {
    width: 25px;
    height: 25px;
    line-height: 25px;
    background: $white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .list {
    height: 25px;
    line-height: 25px;
    margin: 0 3px;
    padding: 0 15px;
    background: $white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .prev::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-left: 5px;
    border-top: 2px solid rgb(41, 41, 41);
    border-left: 2px solid rgb(41, 41, 41);
    transform: rotate(-45deg);
  }

  .next::after {
    content: '';
    width: 6px;
    height: 6px;
    margin-left: -5px;
    border-top: 2px solid rgb(41, 41, 41);
    border-left: 2px solid rgb(41, 41, 41);
    transform: rotate(135deg);
  }

  .prev:hover,
  .ellipsis:hover,
  .list:hover,
  .next:hover,
  .active {
    color: $white;
    background: $theme6;
  }

  .prev:hover::after,
  .next:hover::after {
    border-top-color: $white;
    border-left-color: $white;
  }

  .text {
    margin: 0 5px;
  }

  .input {
    width: 50px;
    height: 23px;
    line-height: 23px;
    text-align: center;
    margin: 0 3px;
    background: $white;
    border: 1px solid #cecece;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    outline: none;
  }

  .select {
    width: 100px;
    height: 25px;
    line-height: 25px;
    margin: 0 3px;
    background: $white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .select:hover .options-box {
    display: block;
  }

  .select-down {
    width: 20px;
    height: 20px;
    position: relative;
  }

  .select-down::after {
    content: '';
    width: 6px;
    height: 6px;
    border-bottom: 2px solid rgb(41, 41, 41);
    border-left: 2px solid rgb(41, 41, 41);
    transform: rotate(135deg);
    position: absolute;
    top: 7.5px;
    left: 5px;
  }

  .options-box {
    width: 100px;
    display: none;
    position: absolute;
    bottom: 25px;
    left: 0;
    z-index: 1;
  }

  .options-box-inner {
    background: $theme3;
    overflow: hidden;
  }

  .option {
    padding: 0 10px;
    text-align: center;
    border-bottom: 1px solid $theme3;
  }

  .option:hover,
  .option-acitve {
    color: $white;
    background: $theme6;
  }

  .btn {
    height: 25px;
    line-height: 25px;
    padding: 0 10px;
    background: $white;
  }

  .btn:hover {
    color: $white;
    background: $theme6;
  }
}